package com.ruoyi.property.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.property.mapper.StaffFeeManageInfoMapper;
import com.ruoyi.property.domain.StaffFeeManageInfo;
import com.ruoyi.property.service.IStaffFeeManageInfoService;
import com.ruoyi.common.core.text.Convert;

/**
 * 员工收费Service业务层处理
 * 
 * @author sux
 * @date 2021-06-30
 */
@Service
public class StaffFeeManageInfoServiceImpl implements IStaffFeeManageInfoService 
{
    @Autowired
    private StaffFeeManageInfoMapper staffFeeManageInfoMapper;

    /**
     * 查询员工收费
     * 
     * @param staffFeeId 员工收费ID
     * @return 员工收费
     */
    @Override
    public StaffFeeManageInfo selectStaffFeeManageInfoById(Long staffFeeId)
    {
        return staffFeeManageInfoMapper.selectStaffFeeManageInfoById(staffFeeId);
    }

    /**
     * 查询员工收费列表
     * 
     * @param staffFeeManageInfo 员工收费
     * @return 员工收费
     */
    @Override
    public List<StaffFeeManageInfo> selectStaffFeeManageInfoList(StaffFeeManageInfo staffFeeManageInfo)
    {
        return staffFeeManageInfoMapper.selectStaffFeeManageInfoList(staffFeeManageInfo);
    }

    /**
     * 新增员工收费
     * 
     * @param staffFeeManageInfo 员工收费
     * @return 结果
     */
    @Override
    public int insertStaffFeeManageInfo(StaffFeeManageInfo staffFeeManageInfo)
    {
        return staffFeeManageInfoMapper.insertStaffFeeManageInfo(staffFeeManageInfo);
    }

    /**
     * 修改员工收费
     * 
     * @param staffFeeManageInfo 员工收费
     * @return 结果
     */
    @Override
    public int updateStaffFeeManageInfo(StaffFeeManageInfo staffFeeManageInfo)
    {
        return staffFeeManageInfoMapper.updateStaffFeeManageInfo(staffFeeManageInfo);
    }

    /**
     * 删除员工收费对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteStaffFeeManageInfoByIds(String ids)
    {
        return staffFeeManageInfoMapper.deleteStaffFeeManageInfoByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除员工收费信息
     * 
     * @param staffFeeId 员工收费ID
     * @return 结果
     */
    @Override
    public int deleteStaffFeeManageInfoById(Long staffFeeId)
    {
        return staffFeeManageInfoMapper.deleteStaffFeeManageInfoById(staffFeeId);
    }
}
